package com.tem.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 栏目属性
 * </p>
 *
 * @author 陈辉
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("category_attribute")
@ApiModel(value="CategoryAttribute对象", description="我的栏目属性")
public class CategoryAttribute implements Serializable {
    private static final long serialVersionUID=8347797243145651L;
    @ApiModelProperty(value = "属性表")
    @TableId(value = "category_attribute_id", type = IdType.AUTO)
    private Long categoryAttributeId;

    @ApiModelProperty(value = "栏目")
    @TableField("category_id")
    private Long categoryId;

    @ApiModelProperty(value = "属性名")
    @TableField("att_name")
    private String attName;

    @ApiModelProperty(value = "输入类型 1单选框 2复选框 3输入框 4textarea 5下拉框")
    @TableField("input_type")
    private Integer inputType;

    @ApiModelProperty(value = "缺省值")
    @TableField("default_value")
    private String defaultValue;

    @ApiModelProperty(value = "1激活 0失效")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "说明")
    @TableField("msg")
    private String msg;

    @ApiModelProperty(value = "排序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "1删除 0未删除")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
